package com.shitu.base.net.request;

import java.util.HashMap;
import java.util.Map;

public class RequestHelper {
    public static String token = "13655513422_auth_e4dc3c76-f5b6-4ffa-92e8-006cdc5b8fe2";

    public static void setToken(String t) {
        token = t;
    }

    /**
     * "aid": "require",
     * "ap": "wifi",
     * "channel": "01",
     * "devicetype": "xiaomi",
     * "hw": "1980*1280",
     * "idfa": "12123",
     * "imei": "354707046861623",
     * "lg": "zh",
     * "mobile": "13655513423",
     * "model": "xiamao 5",
     * "osid": "Android",
     * "osv": "ANDROID5.0.1",
     * "remoteip": "127.0.0.1",
     * "token": "13655513422_auth_e4dc3c76-f5b6-4ffa-92e8-006cdc5b8fe2",
     * "ua": "Mozilla/5.0 (iPod; U; CPU iPhone OS 4_3_2 like Mac OS X; zh-cn) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5",
     * "version": "1.0.0"
     *
     * @return
     */
    public static Map getBase() {
        Map body = new HashMap();
        Map<String, String> map = new HashMap<>();
        map.put("aid", "require");
        map.put("ap", "wifi");
        map.put("channel", "01");
        map.put("devicetype", "xiaomi");
        map.put("hw", "1980*1280");
        map.put("idfa", "12123");
        map.put("imei", "354707046861623");
        map.put("lg", "zh");
        map.put("mobile", "13655513423");
        map.put("model", "xiaomi 5");
        map.put("osid", "Android");
        map.put("osv", "android5.1");
        map.put("remoteip", "127.0.0.1");
        map.put("token", token);
        map.put("ua", "Mozilla/5.0 (iPod; U; CPU iPhone OS 4_3_2 like Mac OS X; zh-cn) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8H7 Safari/6533.18.5");
        map.put("version", "1.0.0");
        body.put("base", map);
        return body;
    }

}
